package org.mifos.boss.domainmodel;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Mobile2BossData {

	private int transferId;
	private String deviceId;
	private Timestamp transferTimeStamp;
	private int transferStatus;
	
	private List<ClientCreationalData> clientCreationalData;
	
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="TRANSFER_ID")
	public int getTransferId() {
		return transferId;
	}
	public void setTransferId(int transferId) {
		this.transferId = transferId;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	public Timestamp getTransferTimeStamp() {
		return transferTimeStamp;
	}
	public void setTransferTimeStamp(Timestamp transferTimeStamp) {
		this.transferTimeStamp = transferTimeStamp;
	}
	public int getTransferStatus() {
		return transferStatus;
	}
	public void setTransferStatus(int transferStatus) {
		this.transferStatus = transferStatus;
	}

	@OneToMany(targetEntity=ClientCreationalData.class, mappedBy="mobile2BossData",
			cascade=CascadeType.ALL, fetch=FetchType.LAZY)
	public List<ClientCreationalData> getClientCreationalData() {
		return clientCreationalData;
	}
	public void setClientCreationalData(List<ClientCreationalData> clientCreationalData) {
		this.clientCreationalData = clientCreationalData;
	}
	
}
